package com.woniu.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年06月03日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_downpayment")
@ApiModel("订单实体类")
@AllArgsConstructor
@NoArgsConstructor
public class TDownpayment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 定金编号
     */
    @ApiModelProperty(name = "downpaymentNum",value = "定金编号")
    @TableField("downpayment_num")
    private String downpaymentNum;

    /**
     * 订单编号
     */
    @ApiModelProperty(name = "orderNum",value = "订单编号")
    @TableField("order_num")
    private String orderNum;

    /**
     * 用户id
     */
    @ApiModelProperty(name = "userId",value = "用户id")
    @TableField("user_id")
    private Long userId;

    /**
     * 支付时间
     */
    @ApiModelProperty(name = "payTime",value = "支付时间")
    @TableField("pay_time")
    private LocalDateTime payTime;

    /**
     * 支付状态
     */
    @ApiModelProperty(name = "payState",value = "支付状态")
    @TableField("pay_state")
    private Integer payState;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createTime",value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
    /**
     * 押金价格
     */
    @ApiModelProperty(name = "price",value = "押金价格")
    @TableField("price")
    private Double price;

}
